function getXMLHTTP()
{
	var xmlhttp = false;	
	try{
		xmlhttp = new XMLHttpRequest();
	}
	catch(e){
		try{			
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(e){
			try{
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch(e1){
				xmlhttp=false;
			}
		}
	}
	return xmlhttp;
}

function delfile(path, file, table, column_id, id, column)
{
	//alert(path);
	//alert(file);
	var xmlhttp = getXMLHTTP();
	if (xmlhttp) {					
		xmlhttp.onreadystatechange = function(){
			if(xmlhttp.readyState==4)
			{
				if (xmlhttp.status==200)
				{					
					//alert(xmlhttp.responseText);
				}
				else
				{
					//alert('Error!!!');
				}
			}
		}
		/**/
		var params = "file=" + file;
		if(table){
			params = "file=" + file + "&table=" + table + "&id=" + id + "&column=" + column + "&column_id=" + column_id;
		}
		xmlhttp.open("POST", path, true);		
		xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xmlhttp.setRequestHeader("Content-length", params.length);
		xmlhttp.setRequestHeader("Connection", "close");
		xmlhttp.send(params);
	}
}
